package com.ruoyi.service;

import com.ruoyi.domain.UserData;
import com.ruoyi.dto.BasisLoadingPositionEquipmentUser;
import com.ruoyi.dto.BasisPositionFrequencyConverterUser;
import com.ruoyi.dto.BasisPositionReceiverUser;
import com.ruoyi.dto.BasisPositionResourceInfoUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IUserDataService {

    boolean addBasisPositionUser(UserData userData);


    boolean addBasisLoadingPositionEquipmentUser(BasisLoadingPositionEquipmentUser basisLoadingPositionEquipmentUser);

    boolean addBasisLoadingPositionResourcesUser(BasisPositionResourceInfoUser basisPositionResourceInfoUser);


    boolean addBasisPositionFrequencyConverterUser(BasisPositionFrequencyConverterUser basisPositionFrequencyConverterUser);

    boolean addBasisPositionReceiverUser(BasisPositionReceiverUser basisPositionReceiverUser);
    //根据阵地id查询 人员
    List<UserData> findByPositionId(Long positionId,String loadingId);

    //根据案例id查询 人员
    List<UserData> findByLoadingIdFormUser(String loadingId);
    // 新 根据案例id查询 人员
    List<UserData> findByLoadingIdFormUserResource(String loadingId);
    //根据案例id和人员id查询 人员信息
    List<UserData> findByLoadingIdAndUserIdFormUserResource( String loadingId,Long userId);



    //根据案例阵地设备id查询  设备关联的人员
    List<UserData> findByBasisPositionEquipmentUser(String loadingId,Long positionId,Long equipmentId);


    //根据案例阵地人员id查询  设备关联
    List<Map<String,Object>> findByBasisPositionUserEq(String loadingId, Long positionId);

    List<Map<String,Object>> findByBasisPositionUserResource(String loadingId, Long positionId);

    //根据案例阵地天线id 删除天线下关联的人员
    boolean delbasisPositionEquipmentUser(String loadingId, Integer positionId,Integer eqId);


    //根据案例id 阵地id  人员id  删除阵地下对应的人员
    boolean delBasisPositionUser( String loadingId, Integer positionId, Integer userId);
    //根据案例id 阵地id  人员id  删除人员绑定的设备
    boolean delBasispositionEquipmentUser(String loadingId,Integer positionId, Integer userId);

    boolean delBasisPositionUser2(String loadingId,Integer positionId);


}
